package com.lhj.security.entity;

import lombok.Data;

import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;

/**
 * @author linghaijin
 * @date 2020-04-09 16:21
 */
@Data
@MappedSuperclass
public class BaseEntity {

    @Temporal(TemporalType.TIMESTAMP)
    private Date createTime;

    private String createBy;

    @Temporal(TemporalType.TIMESTAMP)
    private Date updateTime;

    private String updateBy;


}
